package com.libservice.eventtracking.services

import com.libnetwork.httpservice.HttpService
import com.libnetwork.models.apiresult.APIResult
import io.reactivex.rxjava3.core.Single
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

interface EventTrackingService {
    @POST("/environment/user-center/user/log/v2/upload")
    fun log(@Body data: RequestBody): Single<APIResult<Boolean>>
}

object EventTrackingAPI :
    EventTrackingService by HttpService.instance.retrofit.create(EventTrackingService::class.java)